package goActorsInstance

import (
	"goActorsCommon"
	"os"
)

type GoActor struct {
	MessageBox	chan * goActorsCommon.Message
	object		Runnable
	instance	*GoInstance
	Pid			* goActorsCommon.GoActorPid
}

func ( ga * GoActor ) Register( name string ) os.Error {
	return ga.instance.register( name, ga.Pid )
}

func ( ga * GoActor ) Resolve( name string ) ( pid *goActorsCommon.GoActorPid, error os.Error ) {
	return ga.instance.resolve( name )
}

func ( ga * GoActor ) UnRegister ( name string ) os.Error {
	return ga.instance.unRegister( name )
}

